<template>
  <div id="app">
    <div class="tabbar">
      <router-link to="/">
        <i class="iconfont icon-shouye"></i>
        <p>首页</p>
      </router-link>
      <router-link :to="{ name: 'SortView' }">
        <i class="iconfont icon-icon04"></i>
        <p>分类</p>
      </router-link>
      <router-link :to="{ name: 'ShoppingCart' }">
        <i class="iconfont icon-gouwuche"></i>
        <p>购物车</p>
      </router-link>
      <router-link :to="{ name: 'MyView' }">
        <i class="iconfont icon-wode"></i>
        <p>我的</p>
      </router-link>
    </div>

    <!-- <keep-alive include="SearchSug"> -->
      <router-view />
    <!-- </keep-alive> -->
  </div>
</template>

<style lang="less">
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  // -webkit-font-smoothing: antialiased;
  // -moz-osx-font-smoothing: grayscale;
  // text-align: center;
  // color: #2c3e50;
}

.tabbar {
  height: 50px;
  background-color: #eee;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;

  a {
    font-weight: bold;
    color: #23eb10;

    &.router-link-exact-active {
      color: #179ef8;
    }
  }
}
</style>
